<?php
/**
 * PHP Framework Core Configuration class
 *
 * @author Andrew <andrew@vitche.com>
 * @author Frozen Rain <frozenrain@mail.ru>
 **/

class Configuration {

    private static $_items = array();

    public static function get($key) {

        if (isset(Configuration::$_items[$key])) {

            return Configuration::$_items[$key];
        }

        return null;
    }

    public static function addFromArray($array) {
        foreach ($array as $key => $value) {
            Configuration::$_items[$key] = $value;
        }
    }
}
?>